home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -screenplay- / utilities / hd_installers / o-z / operationwolf / install-operationwolf < prev    next >
Text File  |  1997-12-01  |  2KB  |  87 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch)")
  23.  
  24. (set @default-dest
  25. (askdir
  26.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  27.     (help @askdir-help)
  28.     (default @default-dest)
  29.     (disk)
  30. )
  31. )
  32.  
  33. (set #dest (tackon @default-dest @app-name))
  34.  
  35. (set #CI_unit
  36.     (askchoice
  37.         (prompt "From which disk unit do you want\nto install the game")
  38.         (help    @askoptions-help)
  39.         (choices
  40.            "DF0:"
  41.            "DF1:"
  42.            "DF2:"
  43.            "DF3:"
  44.         )
  45.     )
  46. )
  47.  
  48. (set #CI_drive ("DF%ld:" #CI_unit))
  49.  
  50. (makedir #dest
  51.     (help @makedir-help)
  52.     (infos)
  53. )
  54.  
  55. ;----------------------------
  56.  
  57. (copyfiles
  58.     (help @copyfiles-help)
  59.     (source "OperationWolfHD")
  60.     (dest #dest)
  61.     (infos)
  62. )
  63.  
  64. (copyfiles
  65.     (help @copyfiles-help)
  66.     (source "opwolfhd.readme")
  67.     (dest #dest)
  68.     (infos)
  69. )
  70.  
  71. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  72.     (if
  73.         (= 0 (run ("disk2file %ld \"%s/opwolf.d1\" SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest )))
  74.         ("")
  75.         (abort "\"disk2file\" must be in your PATH !")
  76.     )
  77.  
  78. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  79.     (if
  80.         (= 0 (run ("disk2file %ld \"%s/opwolf.d2\" SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest )))
  81.         ("")
  82.         (abort "\"disk2file\" must be in your PATH !")
  83.     )
  84.  
  85. (exit)
  86.  
  87.